package com.yyy.instagram.Adaper;

import android.app.Activity;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.facebook.drawee.view.SimpleDraweeView;
import com.yyy.instagram.Adaper.ViewHolder.GridTweetViewHolder;
import com.yyy.instagram.R;

import static com.yyy.instagram.Adaper.UserTweetAdapter.DisplayType.grid;
import static com.yyy.instagram.Adaper.UserTweetAdapter.DisplayType.list;

/**
 * Created by qqqqqqq on 2016/10/10.
 */

public class GridTweetAdapter extends  RecyclerView.Adapter<RecyclerView.ViewHolder> {


    public Context context;

    public GridTweetAdapter(Context context){
        super();
        this.context = context;
    }

    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {

        View view = LayoutInflater.from(parent.getContext())
                    .inflate(R.layout.item_tweet_grid, parent, false);
        return new GridTweetViewHolder(view,context);
    }

    @Override
    public void onBindViewHolder(final RecyclerView.ViewHolder holder, int position) {

        if(holder instanceof GridTweetViewHolder){

        }

    }



    @Override
    public int getItemCount() {
        return 14;
    }

}
